package com.wobaby.vo;

public class MessagerContentVO {
	private int contentID;
	private String title;
	private String content;
	private String craeteDate;
	private String modifiedDate;
	private String type;
	public MessagerContentVO(int contentID, String title, String content,
			String craeteDate, String modifiedDate, String type) {
		super();
		this.contentID = contentID;
		this.title = title;
		this.content = content;
		this.craeteDate = craeteDate;
		this.modifiedDate = modifiedDate;
		this.type = type;
	}
	
	public MessagerContentVO(String title, String content,
			String craeteDate, String modifiedDate, String type) {
		super();
		this.title = title;
		this.content = content;
		this.craeteDate = craeteDate;
		this.modifiedDate = modifiedDate;
		this.type = type;
	}
	
	public MessagerContentVO()
	{
		// TODO Auto-generated constructor stub
	}
	@Override
	public int hashCode() {
		final int prime = 31;
		int result = 1;
		result = prime * result + ((content == null) ? 0 : content.hashCode());
		result = prime * result + contentID;
		result = prime * result
				+ ((craeteDate == null) ? 0 : craeteDate.hashCode());
		result = prime * result
				+ ((modifiedDate == null) ? 0 : modifiedDate.hashCode());
		result = prime * result + ((title == null) ? 0 : title.hashCode());
		result = prime * result + ((type == null) ? 0 : type.hashCode());
		return result;
	}
	@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (getClass() != obj.getClass())
			return false;
		MessagerContentVO other = (MessagerContentVO) obj;
		if (content == null) {
			if (other.content != null)
				return false;
		} else if (!content.equals(other.content))
			return false;
		if (contentID != other.contentID)
			return false;
		if (craeteDate == null) {
			if (other.craeteDate != null)
				return false;
		} else if (!craeteDate.equals(other.craeteDate))
			return false;
		if (modifiedDate == null) {
			if (other.modifiedDate != null)
				return false;
		} else if (!modifiedDate.equals(other.modifiedDate))
			return false;
		if (title == null) {
			if (other.title != null)
				return false;
		} else if (!title.equals(other.title))
			return false;
		if (type == null) {
			if (other.type != null)
				return false;
		} else if (!type.equals(other.type))
			return false;
		return true;
	}
	@Override
	public String toString() {
		return "MessagerContentVO [contentID=" + contentID + ", title=" + title
				+ ", content=" + content + ", craeteDate=" + craeteDate
				+ ", modifiedDate=" + modifiedDate + ", type=" + type + "]";
	}
	public int getContentID() {
		return contentID;
	}
	public void setContentID(int contentID) {
		this.contentID = contentID;
	}
	public String getTitle() {
		return title;
	}
	public void setTitle(String title) {
		this.title = title;
	}
	public String getContent() {
		return content;
	}
	public void setContent(String content) {
		this.content = content;
	}
	public String getCraeteDate() {
		return craeteDate;
	}
	public void setCraeteDate(String craeteDate) {
		this.craeteDate = craeteDate;
	}
	public String getModifiedDate() {
		return modifiedDate;
	}
	public void setModifiedDate(String modifiedDate) {
		this.modifiedDate = modifiedDate;
	}
	public String getType() {
		return type;
	}
	public void setType(String type) {
		this.type = type;
	}

}
